﻿CREATE TABLE [dbo].[Accounts]
(
	[Id]		[BIGINT]		NOT NULL	IDENTITY(1, 1),
	[TenantId]	[BIGINT]		NOT NULL,
	[Name]		[VARCHAR](256)	NOT NULL,
	[CreatedAt]	[DATETIME]		NOT NULL,
	CONSTRAINT PK_Accounts PRIMARY KEY ([Id]),
	CONSTRAINT FK_Accounts_Tenants FOREIGN KEY ([TenantId]) REFERENCES [dbo].[Tenants]([Id])
)
